body {
    background: url('../images/bigbck.png') no-repeat center center;
    background-size: 100% 100%;
    font-family: 'Microsoft YaHei', 'Lantinghei SC', 'Open Sans', Arial, 'Hiragino Sans GB', 'STHeiti', 'WenQuanYi Micro Hei', 'SimSun', sans-serif;
    margin: 0;
    height: 100vh;
}

.modal {
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    z-index: 2;
    top: 0;
}

button {
    display: block;
    width: 100%;
    padding: 6px 0;
    border: 0 none;
    color: #fff;
    background-color: #4d90fe;
    cursor: pointer;
}

.counter {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.counter.hide {
    transform: translate(-50%, -50%) scale(0);
    animation: hide .2s ease-out;
}

.modal.hide {
    display: none;
}

@keyframes hide {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) scale(0);
    }
}

.final {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #ffe600;
}

.final.show {
    transform: translate(-50%, -50%) scale(1);
    animation: show .3s ease-in;
}

@keyframes show {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    80% {
        transform: translate(-50%, -50%) scale(1.4);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.nums {
    color: #ffe600;
    position: relative;
    font-size: 50px;
    overflow: hidden;
    width: 250px;
    height: 50px;
}

.nums span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(120deg);
    transform-origin: bottom center;
}

.nums span.in {
    transform: translate(-50%, -50%) rotate(0deg);
    animation: goIn .5s ease-in-out;
}

.nums span.out {
    animation: goOut .5s ease-in-out;
}

@keyframes goIn {
    0% {
        transform: translate(-50%, -50%) rotate(120deg);
    }
    30% {
        transform: translate(-50%, -50%) rotate(-20deg);
    }
    60% {
        transform: translate(-50%, -50%) rotate(10deg);
    }
    90%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@keyframes goOut {
    0%,
    30% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    60% {
        transform: translate(-50%, -50%) rotate(20deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-120deg);
    }
}

h4 {
    color: #fff;
}


/* 主页滑动模块和得分模块 */

.content {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    z-index: 1;
}


/* 手机号码输入模块 */

.modal .phone {
    background: url('../images/bck.png') no-repeat center center;
    background-size: 100% 100%;
    width: 100%;
    height: 100%;
    position: relative;
    min-height: 500px;
}

.phone input {
    width: 200px;
    height: 36px;
    background-color: #ffffff;
    box-shadow: 0px 1px 5px 0px rgba(168, 22, 5, 0.75);
    border-radius: 18px;
    display: block;
    margin: 0 auto;
    position: absolute;
    top: 56%;
    left: 50%;
    margin-left: -100px;
    border: 0px;
    font-size: 18px;
    line-height: 36px;
    color: #ff5f4a;
    text-align: center;
    outline: none;
}

.phone #start {
    width: 130px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin: 0 auto;
    position: absolute;
    top: 68%;
    left: 50%;
    margin-left: -65px;
    opacity: 0;
}

.phone.hide {
    display: none;
}


/* 手指滑动区域 */


/* Scratch */

.scratch_container {
    position: relative;
    margin: 0 auto;
    max-width: 1024px;
    top: 250px;
}

.scratch_viewport {
    position: relative;
    width: 330px;
    height: 180px;
    margin: 0 auto;
    z-index: 0;
}

.scratch_picture-under {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
}

.scratch_container canvas {
    background: no-repeat center center;
    background-size: 100% 100%;
    position: relative;
    height: 100%;
    z-index: 1;
}